/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pos.Driving;

import pos.Driving.Camera.Camera;
import pos.ICommand;

/**
 *
 * @author Administrator
 */
public class CommandChangeView implements ICommand{
    private Camera receiver;
    public CommandChangeView(Camera receiver) {
        this.receiver=receiver;
    }
    /**
     * 执行命令，更改当前列车视角
     * @param Param 新的视角
     * @return 无需返回，返回null
     */
    public Object execute(Object Param) {
        receiver.setFollowing_type(Integer.parseInt((String)Param));
        return null;
    }
}
